home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / make-367.lha / make-3.67 / commands.h < prev    next >
C/C++ Source or Header  |  1993-02-05  |  2KB  |  42 lines

  1. /* Copyright (C) 1988, 1989, 1991, 1993 Free Software Foundation, Inc.
  2. This file is part of GNU Make.
  3.  
  4. GNU Make is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8.  
  9. GNU Make is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with GNU Make; see the file COPYING.  If not, write to
  16. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. /* Structure that gives the commands to make a file
  19.    and information about where these commands came from.  */
  20.  
  21. struct commands
  22.   {
  23.     char *filename;        /* File that contains commands.  */
  24.     unsigned int lineno;    /* Line number in file.  */
  25.     char *commands;        /* Commands text.  */
  26.     unsigned int ncommand_lines;/* Number of command lines.  */
  27.     char **command_lines;    /* Commands chopped up into lines.  */
  28.     char *lines_flags;        /* One set of flag bits for each line.  */
  29.     int any_recurse;        /* Nonzero if any `lines_recurse' elt has */
  30.                 /* the COMMANDS_RECURSE bit set.  */
  31.   };
  32.  
  33. /* Bits in `lines_flags'.  */
  34. #define    COMMANDS_RECURSE    1 /* Recurses: + or $(MAKE).  */
  35. #define    COMMANDS_SILENT        2 /* Silent: @.  */
  36. #define    COMMANDS_NOERROR    4 /* No errors: -.  */
  37.  
  38. extern void execute_file_commands ();
  39. extern void print_commands ();
  40. extern void delete_child_targets ();
  41. extern void chop_commands ();
  42.